package com.github.caijh.mall.common.enums;

import com.github.caijh.framework.core.enums.IndexEnum;

/**
 * 支付类型.
 */
public enum PayType implements IndexEnum {
    WX(1, "wx"),
    ALI(2, "ali"),
    BALANCE(3, "balance"),
    OFFLINE(4, "offline");

    private final int index;
    private final String orderPrefix;

    PayType(int index, String orderPrefix) {
        this.index = index;
        this.orderPrefix = orderPrefix;
    }

    @Override
    public int getIndex() {
        return this.index;
    }

    public String getOrderPrefix() {
        return orderPrefix;
    }
}
